import request from '@/utils/request'

// 查询采购-进出仓数据列表
export function listBiPurchaseInOutWarehouse(query) {
  return request({
    url: '/financial/BiPurchaseInOutWarehouse/list',
    method: 'get',
    params: query
  })
}

// 查询采购-进出仓数据详细
export function getBiPurchaseInOutWarehouse(id) {
  return request({
    url: '/financial/BiPurchaseInOutWarehouse/' + id,
    method: 'get'
  })
}

// 新增采购-进出仓数据
export function addBiPurchaseInOutWarehouse(data) {
  return request({
    url: '/financial/BiPurchaseInOutWarehouse',
    method: 'post',
    data: data
  })
}
// 新增采购-进出仓数据
export function autoSynData(data) {
  return request({
    url: '/financial/BiPurchaseInOutWarehouse/autoSynData',
    method: 'post',
    data: data
  })
}
// 修改采购-进出仓数据
export function updateBiPurchaseInOutWarehouse(data) {
  return request({
    url: '/financial/BiPurchaseInOutWarehouse',
    method: 'put',
    data: data
  })
}

// 删除采购-进出仓数据
export function delBiPurchaseInOutWarehouse(id) {
  return request({
    url: '/financial/BiPurchaseInOutWarehouse/' + id,
    method: 'delete'
  })
}
